import request from "@/http/request";
import JsCookie from "js-cookie";

export function selectCustomerByToken(token){
    let url="/api/customer/token";
    return request.get(url,{
        params:{
            token
        }
    })
}

export function updateCustomer(customer){
    let url="/api/customer/update";
    return request.post(url,customer,{
        headers:{
            Token:JsCookie.get("token")
        }
    })
}